package com.apexedu.biz.action;

import com.apexedu.biz.service.impl.UserAccountManagerServiceImpl;
import com.apexedu.framework.service.BaseService;
import com.apexedu.identity.entity.TSysUser;
import com.apexedu.sys.action.AbstractBaseActionSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 *  所有用户管理
 * date:2013.10.10
 * user:liuxu
 */
@SuppressWarnings("serial")
@Component
@Scope("prototype")
public class UserAccountManagerAction extends AbstractBaseActionSupport {

	 /**
     * 此方法植入service类
     */
    @Resource(name="userAccountManagerService")
    public void setBaseService(BaseService baseService){
        super.setBaseService(baseService);
    }

    @Autowired
    UserAccountManagerServiceImpl service;
    private TSysUser sysUser;

    public TSysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(TSysUser sysUser) {
        this.sysUser = sysUser;
    }
    /**
     * 设置系统
     * @return
     */
    public String configSystem(){
        this.setParameter("resultData",service.systemList());
        return toView("configSystem.jsp");
    }

}
